#ifndef __TOUCH_H
#define __TOUCH_H


#ifdef __cplusplus
 extern "C" {
#endif

#include "main.h"

#define MAX_TOUCH_NUM       5

typedef struct TouchPointType
{
    uint8_t         trackId;
    uint16_t        xPos;
    uint16_t        yPos;
    uint16_t        pointSize;
} TouchPointType;

typedef struct TouchDataType
{
    uint8_t         buf_status;
    uint8_t         touch_num;
    TouchPointType  tp[MAX_TOUCH_NUM];
} TouchDataType;

extern TouchDataType gTouchPoint;



void touch_init(void);

void touch_int(void);

void touch_scan(void);

#ifdef __cplusplus
}
#endif



#endif
